<template>
  <div class="edit_title_warpper">
    <CKEidtor :editorData="exam.title" @onChange="onChange" />
  </div>
</template>
<script lang="ts">
import { ExamItem } from '@/store/design/types';
import { defineComponent } from 'vue';
import CKEidtor from './CKEidtor.vue';
export default defineComponent({
  components: { CKEidtor },
  props: { exam: { type: ExamItem, required: true } },
  setup(props) {
    const onChange = (value: string) => {
      props.exam.title = value;
    };
    return { onChange };
  },
});
</script>
<style lang="less" scoped></style>
